reference integer specifys the channel you want to close. Use the
reference number obtained from the
SP Open Voice function.
line string (255) is a string (max. length 255) which contains the
text you want to be spoken. It can also contain a
reference to a "STR#“ resource.
err integer returns the error which occured.
A value of zero indicates no error occured. See
below for a list of possible errors.
Speaks the string you pass using the voice of the open speech channel you specify.
The line you pass is copied and this copy is used to speak. You then can do whatever you want, including unload/cancel any record or clearing the variable or field after calling this function. The text stays in memory after speaking is finished, until another call is made to one of the functions in this ”Speech Channels“ group, regardless of the speech channel reference you pass.
If the specified speech channel is already speaking text, this will be stopped immediatly.
Examples:
$err := SP Voice String ($speechref;"Macintosh")
$err := SP Voice String ($speechref;"Look who is talking!")